import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/css/global.css'
// 引入axios
import axios from 'axios';
import VueAxios from 'vue-axios'
// import vueMoment from 'vue-moment'

const vue = createApp(App)
vue.use(store)
    .use(VueAxios, axios)
    .use(router)
    .use(ElementPlus, {
        locale: zhCn,
    })
    .mount('#app')
/*vue.use(vueMoment).filter('dateYMDHMSFormat', function (dateStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
    return moment(dateStr).format(pattern);
})*/
